package Day02.advice;

import org.springframework.aop.ThrowsAdvice;

/**
 * Created by datou on 2017/3/23.
 */
public class Erro implements ThrowsAdvice {
    public static void main(String[] args) {
        String str="hello world,hello java";
        String str1= str.substring(str.lastIndexOf("o ")+1,str.length())+" "+str.substring(0,str.lastIndexOf("o "));
        System.out.println(str1);
    }
    public static String


    a(){
        try {
            System.out.println("aaaaaaaaaaaaa");
            return "aa";
        }finally {
            System.out.println("xxxxxxxxxxxxxxxxx");
        }
    }
}
